<?php

use yii\db\Migration;
use yii\db\Schema;

class m170620_041259_ADD_COLUMN_ORDER_RELATION_ORDER extends Migration
{
    public function up()
    {

		$this->addColumn('{{order}}', 'relation', Schema::TYPE_INTEGER. "(11)  NULL COMMENT '关联ID' ");
    }

    public function down()
    {
        echo "m170620_041259_ADD_COLUMN_ORDER_RELATION_ORDER cannot be reverted.\n";

        return false;
    }

    /*
    // Use safeUp/safeDown to run migration code within a transaction
    public function safeUp()
    {
    }

    public function safeDown()
    {
    }
    */
}
